<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<table class="table table-hover">
	<thead>
		<tr>
			<th align="center">#</th>
			<th align="center">姓名</th>
			<th align="center">邮箱</th>
			<th align="center">电话号码</th>
			<th align="center">操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="user" items="${pageResult.datas}" varStatus="status">
					<tr>
						<td> ${user.id} </td>
						<td> ${user.name} </td>
						<td> ${user.email} </td>
						<td> ${user.phoneno} </td>
						<td>
							<a  class="btn btn-info" href='<c:url value="/user/${user.id}"/>'><i class="icon-eye-close"></i>&nbsp;&nbsp;查看</a>
							<a  class="btn btn-info" href='<c:url value="/user/edit?id=${user.id}"/>'><i class="icon-edit"></i>&nbsp;&nbsp;编辑</a>
							<a  class="btn btn-danger" href='<c:url value="/user/delete?id=${user.id}"/>'><i class="icon-remove"></i>&nbsp;&nbsp;删除</a>
						</td>
					</tr>
		</c:forEach> 
	</tbody>
	
	<tfoot>
		<tr>
			<td colspan="5" align="center">
				 ${pageResult.pageHelper.htmlPager} 
			</td>
		</tr>
	</tfoot>
</table>